package com.sh.data.engine.repository.dao.authority.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sh.data.engine.common.enumDefinition.RoleEnum;
import com.sh.data.engine.repository.dao.base.EngineBaseModel;
import lombok.*;

/**
 * @TableName tb_user_project
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "tb_user_project")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserProjectEntity extends EngineBaseModel<UserProjectEntity> {

    /**
     * 用户id
     */
    private String userId;

    /**
     * 工作空间id
     */
    private Long projectId;

    /**
     * 空间角色id
     */
    private int roleId;

    /**
     * 记录是否可用，1：可用，0：不可用
     */
    @TableLogic(value = "1", delval = "0")
    private Integer rowState;

}